package com.lian.anlimall.order.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lian.anlimall.order.entity.OrderItemEntity;
import com.lian.anlimall.order.vo.SpuSalesTimeVo;
import com.lian.anlimall.order.vo.SpuSalesVo;
import com.lian.anlimall.order.vo.categorySalesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 订单项信息
 * 

 * @email HeJieLin@anlimall.com
 * @date 2021-04-22 19:49:53
 */
@Mapper
public interface OrderItemDao extends BaseMapper<OrderItemEntity> {

    List<SpuSalesVo> selectBySalesFive();

    OrderItemEntity selectByOrderSn(@Param("orderSn") String orderSn);

    OrderItemEntity ListBySnAndSkuId(@Param("orderSn") String orderSn, @Param("skuId") Long skuId);

    List<SpuSalesTimeVo> SelectspuSalesTime(@Param("spuId") Long spuId);

    List<categorySalesVo> selectCategorySale();
}
